import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import './index.css'
import store from './redux/store.js'
import { Provider } from 'react-redux'
ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    {/* 此处需要用provider包裹App,目的是让App所有的后代容器组件都能接受到store */}
    <Provider store={store}>
      <App />
    </Provider>
  </React.StrictMode>,
)

